home *** CD-ROM | disk | FTP | other *** search
- Path: sierra.net!usenet
- From: TGColwell <snowbull@sierra.net>
- Newsgroups: comp.lang.c++
- Subject: Why use private class members instead of protected?
- Date: Wed, 10 Jan 1996 22:16:41 -0800
- Organization: Sierra-Net
- Message-ID: <30F4AB49.6ABB@sierra.net>
- NNTP-Posting-Host: 204.94.232.59
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- I'm relatively new to c++. I have one quick question: If child
- classes can only access protected members of the parent class,
- why make any members of any class private? Wouldn't it be
- better to make members of the parent class protected so that the
- class is alway "inheritance ready"?
-
- Thanks in advance,
-
- -Tyler
-